Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Semconv Naming For ActionPack #1224

Merged

Conversation

arielvalentin
Copy link
Collaborator

Aligns the span name closer to the specification instead of using Ruby class/method naming syntax

Fixes #961

@arielvalentin arielvalentin self-assigned this Nov 5, 2024
Copy link
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Added a couple of queries for commented out assertions.

@@ -65,7 +64,7 @@

_(last_response.body).must_equal 'created new item'
_(last_response.ok?).must_equal true
_(span.name).must_equal 'ExampleController#new_item'
# _(span.name).must_equal 'GET example/new_item'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be updated or removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my. That definitely was a mistake on my part.

Thank you for pointing this out!

describe 'when the application has exceptions_app configured' do
let(:rails_app) { AppConfig.initialize_app(use_exceptions_app: true) }

it 'does not overwrite the span name from the controller that raised' do
get 'internal_server_error'

_(span.name).must_equal 'ExampleController#internal_server_error'
# _(span.name).must_equal 'GET example/show'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be updated or removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳

Copy link
Contributor

@xuan-cao-swi xuan-cao-swi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@arielvalentin arielvalentin merged commit acac4fd into open-telemetry:main Nov 15, 2024
57 checks passed
@arielvalentin arielvalentin deleted the action-pack-http-route branch November 15, 2024 20:09
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use semconv span naming in ActionPack
3 participants